package com.game;

import android.graphics.Bitmap;

import android.graphics.Canvas;

import android.view.MotionEvent;

public class Scene0 extends Scene {
	
	private Bitmap m_Background;
	private long m_StartTime;
	private long m_SceneWait;

	public Scene0(SceneManager parent)
	{
		super(parent);
		m_Background = LoadBitmap(R.drawable.scene0_bg);
		m_StartTime = 0;
		m_SceneWait = 2000; // Milliseconds
	}
	
	@Override
	public void Draw(Canvas canvas) {
		// Draws the background
		canvas.drawBitmap(m_Background, 0, 0, null);
		
	}

	@Override
	public void End() {


	}

	@Override
	public void Start() {
		// Fill stuff
		m_StartTime = System.currentTimeMillis();

	}

	@Override
	public void Update() {
		long curTime = System.currentTimeMillis();
		if(curTime - m_StartTime > m_SceneWait)
		{
			mParentSM.ChangeScene(new Scene1(mParentSM));
		}

	}

	@Override
	public boolean handleTouch(MotionEvent event) {
		// No input
		return false;
	}

}
